﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Automobile.service.Model;
using Automobile.service.BLL;

namespace Automobile.service.UI
{
    public partial class ShipMents_Add : System.Web.UI.Page
    {
        WareHoseBLL whbll = new WareHoseBLL();
        MemberCardBLL mcbll = new MemberCardBLL();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                DropDownList1.DataSource = mcbll.ShowMenberCard();
                DropDownList1.DataTextField = "MemberCard_Name";
                DropDownList1.DataValueField = "MemberCard_Id";
                DropDownList1.DataBind();
                DropDownList1.Items.Insert(0, "-请选择-");

                DropDownList2.DataSource = whbll.ShowListWareHose();
                DropDownList2.DataTextField = "WareHose_Name";
                DropDownList2.DataValueField = "WareHose_Id";
                DropDownList2.DataBind();
                DropDownList2.Items.Insert(0, "-请选择-");
            }
        }
    }
}